<div id="content">
    <ul class="inlinelist">
        <li class="prominent"><?php __e('Plugin Management'); ?></li>
    </ul>
<p class="u">  </p>
<?php
if (!empty($plugins)) {
?>
  <form action="Users" id="list" method="post">
    <table>
      <tr>
        <th class="tablebar"><?php __e('Plugin'); ?></th>
        <th class="tablebar"><?php __e('Version'); ?></th>
        <th class="tablebar"><?php __e('Description'); ?></th>
        <th class="tablebar"><?php __e('Status'); ?></th>
        <th class="tablebar"><?php __e('Action'); ?></th>
      </tr>
<?php
    foreach($plugins as $plugin) {
        if ($plugin['status'] == 'Active') {
            $action = $html->admin_link(__('Deactivate'), '/plugins/plugins/' . $plugin['plugin'] . '/deactivate');
        } else if ($plugin['status'] == 'Inactive') {
            $action = $html->admin_link(__('Activate'), '/plugins/plugins/' . $plugin['plugin'] . '/activate');
        }

?>
      <tr>
    <td><?php echo $plugin['title']; ?></td>
        <td><?php echo $plugin['version']; ?></td>
        <td><?php echo $plugin['description']; ?> By <?php echo $plugin['author']; ?>.</td>
        <td><?php __e($plugin['status']); ?></td>
        <td><?php echo $action; ?></td>

      </tr>
<?php
    }
?>
    </table>
  </form>
<?php
} else {
    __e('Couldn’t open plugins directory or there are no plugins available. If something goes wrong with a plugin and you can’t use Arlicle, delete or rename that file in the www/plugins directory and it will be automatically deactivated.');
}
?>
</div>
